import { ResInterface } from "../interface/request.interface";
import { Request } from "../utils/request";
import { NodeApi } from "../utils/config";

// node接口-登录
export const ApiLogin = async ({
  data = {},
}): Promise<ResInterface> => {
  return await Request({
    url: `${NodeApi}/v1/api/user/login`,
    data,
  });
}
